{% extends "Iutomgl6Bundle::layout.html.twig" %}

{% block title %}Création de ticket{% endblock %}

{% block body %}

<h1>Affectation</h1>

<table class="record_properties">
    <tbody>
        <tr>
            <th>Identifiant</th>
            <td>{{ entity.id }}</td>
        </tr>
        <tr>
            <th>Date d'affectation</th>
            <td>{{ entity.datePriseEnCharge|date('Y-m-d H:i:s') }}</td>
        </tr>
        <tr>
            <th>Commentaires</th>
            <td>{{ entity.commentairesAffectation }}</td>
        </tr>
    </tbody>
</table>


        <a href="{{ path('affectation') }}"id="retour">
            <button> Retour </button>
        </a>

        <a href="{{ path('affectation_edit', { 'id': entity.id }) }}"id="edit">
            <button> Editer </button>
        </a>

        <form action="{{ path('affectation_delete', { 'id': entity.id }) }}" method="post">
            {{ form_widget(delete_form) }}
            <button type="submit">Delete</button>
        </form>

{% endblock %}